package it.crudity.core.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

@Entity
public class DummyEntity2 extends BaseEntity<Long>{
	private static final long serialVersionUID = 1L;
	
	private String name;
	
	@NotNull
	@NotEmpty
	@Column(unique=true)
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
}
